package com.mew.game.core.common.handler;

import com.mew.common.rest.bo.GameSession;
import com.mew.game.core.common.messge.request.PlayRequestMessage;
import com.mew.game.core.common.messge.response.PlayResponseMessage;
import com.zebra.remoting.protocol.ZebraCommand;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public abstract class AbstractPlayHandler implements PlayHandler {


    @Override
    public void play(ZebraCommand<PlayRequestMessage> command, GameSession userVO) {


           //TODO  公共业务逻辑
            //----------游戏-------
            PlayResponseMessage message = playGame( userVO);
            command.sendMessage(message);

    }


    public abstract PlayResponseMessage playGame(GameSession userVO);



}
